﻿using System;
using Kugar.Core.ExtMethod;

namespace Kugar.ERPFramework.Core.Entity
{
    /// <summary>
    ///     项目工程的信息
    /// </summary>
    [Serializable]
    public class ProjectInfo
    {
        [NonSerialized]
        private string _projectPath = "";

        public string ProjectID { set; get; }

        public string ProjectName { set; get; }

        public string EndPointUrl { set; get; }

        public ProjectInstanceInfo[] InstanceList { set; get; }

        public int InstanceCount { get { return InstanceList.HasData() ? InstanceList.Length : 0; } }

        public string ProjectPath
        {
            set { _projectPath = value; }
            get { return _projectPath; }
        }
    }
}